#import "DreamerSoarCell.h"


@implementation DreamerSoarCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
	self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
	if (self) {

		self.selectionStyle = UITableViewCellSelectionStyleNone;
		//self.contentView.backgroundColor = UIColor.whiteColor;

		//: 初始化UI布局
		[self graciousQuiverLuminousLayout];
	}
	return self;
}

- (void)setYonder:(DreamerSoarModel *)yonder {
	_yonder = yonder;

	//: 配置cell的UI

}
- (UILabel *)unveilCableFractalLabel {
	if (!_unveilCableFractalLabel) {
	
        _unveilCableFractalLabel = [[UILabel alloc] init];
        _unveilCableFractalLabel.frame = CGRectMake(41, 39, 88, 162);
        _unveilCableFractalLabel.text = @"label_1";
        _unveilCableFractalLabel.font = [UIFont systemFontOfSize:18 weight:UIFontWeightBold];
        _unveilCableFractalLabel.textColor = [UIColor colorWithRed:42/255.0 green:210/255.0 blue:61/255.0 alpha:0.8];
        _unveilCableFractalLabel.textAlignment = NSTextAlignmentCenter;
        _unveilCableFractalLabel.numberOfLines = 0;
	}
	return _unveilCableFractalLabel;
}

//: self.doodleNirvanaZestButton 的点击事件
- (void)action_2 {}

//: self.voyageBtn 的点击事件
- (void)action_3 {}

- (void)graciousQuiverLuminousLayout {

    //: 描述_0
    self.kaleidoscopeRebirthVividTextView = [UITextView new];
    self.kaleidoscopeRebirthVividTextView.size = CGSizeMake(175, 195);
    self.kaleidoscopeRebirthVividTextView.left = 26;
    self.kaleidoscopeRebirthVividTextView.top = 5;
    [self.contentView addSubview:self.kaleidoscopeRebirthVividTextView];

	//: 描述_1
	[self.contentView addSubview:self.unveilCableFractalLabel];


    //: 描述_2
    self.doodleNirvanaZestButton = [[UIButton alloc] init];
    self.doodleNirvanaZestButton.size = CGSizeMake(168, 134);
    self.doodleNirvanaZestButton.left = 30;
    self.doodleNirvanaZestButton.top = 17;
    UIImage *joyousZestfulKaleidoscope = [UIImage imageNamed:@"images/icon_2.png"];
    if (joyousZestfulKaleidoscope) {
	    [self.doodleNirvanaZestButton setImage:joyousZestfulKaleidoscope forState:UIControlStateNormal];
    }
    [self.doodleNirvanaZestButton setTitle:@"button_2" forState:UIControlStateNormal];
    [self.doodleNirvanaZestButton setTitle:@"button_selected_2" forState:UIControlStateSelected];
    [self.doodleNirvanaZestButton setTitleColor:[UIColor colorWithRed:67/255.0 green:71/255.0 blue:224/255.0 alpha:0.6] forState:UIControlStateNormal];
    [self.doodleNirvanaZestButton setTitleColor:[UIColor colorWithRed:56/255.0 green:102/255.0 blue:138/255.0 alpha:0.8] forState:UIControlStateSelected];
    [self.doodleNirvanaZestButton addTarget:self action:@selector(action_2) forControlEvents:UIControlEventTouchUpInside];
    [self.contentView addSubview:self.doodleNirvanaZestButton];


    //: 描述_3
    self.voyageBtn = [[UIButton alloc] initWithFrame:CGRectZero];
    self.voyageBtn.frame = CGRectMake(39, 11, 140, 32);
    UIImage *merge = [UIImage imageNamed:@"images/icon_3.png"];
    if (merge) {
	    [self.voyageBtn setImage:merge forState:UIControlStateNormal];
    }
    [self.voyageBtn setTitle:@"button_3" forState:UIControlStateNormal];
    [self.voyageBtn setTitle:@"button_selected_3" forState:UIControlStateSelected];
    [self.voyageBtn setTitleColor:[UIColor colorWithRed:62/255.0 green:143/255.0 blue:163/255.0 alpha:0.7] forState:UIControlStateNormal];
    [self.voyageBtn setTitleColor:[UIColor colorWithRed:176/255.0 green:239/255.0 blue:104/255.0 alpha:0.8] forState:UIControlStateSelected];
    [self.voyageBtn addTarget:self action:@selector(action_3) forControlEvents:UIControlEventTouchUpInside];
    [self.contentView addSubview:self.voyageBtn];


    //: 描述_4
    self.glimmerEmbarkTextView = [UITextView new];
    self.glimmerEmbarkTextView.frame = CGRectMake(13, 20, 164, 38);
    [self.contentView addSubview:self.glimmerEmbarkTextView];


    //: 描述_5
    UIView *glimmerKindredKingdom = [UIView new];
    glimmerKindredKingdom.size = CGSizeMake(76, 131);
    glimmerKindredKingdom.left = 20;
    glimmerKindredKingdom.top = 39;
    self.binaryThriveView = glimmerKindredKingdom;
    [self.contentView addSubview:glimmerKindredKingdom];
}


@end